home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
pc
/
Shout3Ddemo
/
Shout3d_runtime
/
codebase
/
models
/
renderTests
/
colorPerVertexCombos.wrl
< prev
next >
Wrap
Text File
|
2000-07-30
|
14KB
|
1,086 lines
#VRML V2.0 utf8
Viewpoint {
position 0 0 13
}
# start of top
Transform {
translation 0 2.5 0 #2 0
children [
# flat shaded material
Transform {
rotation 0 1 0 0.6
translation -3 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance DEF MyApp Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
geometry IndexedFaceSet {
solid FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# smooth shaded material
Transform {
rotation 0 1 0 0.6
translation -1 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance DEF MyApp Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
geometry IndexedFaceSet {
creaseAngle 3
solid FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# flat shaded material with transparency
Transform {
rotation 0 1 0 0.6
translation 1 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 transparency 0.5 } }
geometry IndexedFaceSet {
solid FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# smooth shaded material with transparency
Transform {
rotation 0 1 0 0.6
translation 3 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 transparency 0.5 } }
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# flat shaded indexed per polygon
Transform {
rotation 0 1 0 0.6
translation -3 2 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance DEF MyApp Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
colorIndex [
1 0
]
}
}
]
}
]
}
# smooth shaded indexed per polygon
Transform {
rotation 0 1 0 0.6
translation -1 2 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
creaseAngle 3
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
colorIndex [
1 0
]
}
}
]
}
]
}
# flat shaded per polygon
Transform {
rotation 0 1 0 0.6
translation 1 2 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyApp #Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
}
}
]
}
]
}
# smooth shaded per polygon
Transform {
rotation 0 1 0 0.6
translation 3 2 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyApp #Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
creaseAngle 3
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
}
}
]
}
]
}
# flat shaded indexed per vertex
Transform {
rotation 0 1 0 0.6
translation -3 -0.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex TRUE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
colorIndex [
0 2 3 -1
0 1 2 -1
]
}
}
]
}
]
}
# smooth shaded indexed per vertex
Transform {
rotation 0 1 0 0.6
translation -1 -0.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyApp
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
colorPerVertex TRUE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
colorIndex [
0 2 3 -1
0 1 2 -1
]
}
}
]
}
]
}
# flat shaded per vertex
Transform {
rotation 0 1 0 0.6
translation 1 -0.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex TRUE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
}
}
]
}
]
}
# smooth shaded per vertex
Transform {
rotation 0 1 0 0.6
translation 3 -0.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyApp
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
colorPerVertex TRUE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
}
}
]
}
]
}
]
} # end of top
# start of middle
Transform {
translation 0 -4.25 0 #-5 0
children [
# flat shaded material with texture
Transform {
rotation 0 1 0 0.6
translation -3 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance DEF MyTexApp Appearance {
material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 }
texture ImageTexture { url "cpv_texmap.jpg" }
}
geometry IndexedFaceSet {
solid FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
texCoord DEF MyTexCoord TextureCoordinate { point [
0 1 0 0 1 0 1 1
]}
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# smooth shaded material with texture
Transform {
rotation 0 1 0 0.6
translation -1 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# white lit flat shaded with texture
Transform {
rotation 0 1 0 0.6
translation 1 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance {
material Material { modulateTextureWithDiffuse true diffuseColor 1 1 1 }
texture ImageTexture { url "cpv_texmap.jpg" }
}
geometry IndexedFaceSet {
solid FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# white lit smooth shaded with texture
Transform {
rotation 0 1 0 0.6
translation 3 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance {
material Material { modulateTextureWithDiffuse true diffuseColor 1 1 1 }
texture ImageTexture { url "cpv_texmap.jpg" }
}
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# flat shaded indexed per polygon with texture
Transform {
rotation 0 1 0 0.6
translation -3 2 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
colorIndex [
1 0
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# smooth shaded indexed per polygon with texture
Transform {
rotation 0 1 0 0.6
translation -1 2 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
creaseAngle 3
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
colorIndex [
1 0
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# flat shaded per polygon with texture
Transform {
rotation 0 1 0 0.6
translation 1 2 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# smooth shaded per polygon with texture
Transform {
rotation 0 1 0 0.6
translation 3 2 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
creaseAngle 3
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# flat shaded indexed per vertex with texture
Transform {
rotation 0 1 0 0.6
translation -3 -0.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex TRUE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
colorIndex [
0 2 3 -1
0 1 2 -1
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# smooth shaded indexed per vertex with texture
Transform {
rotation 0 1 0 0.6
translation -1 -0.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
colorPerVertex TRUE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
colorIndex [
0 2 3 -1
0 1 2 -1
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# flat shaded per vertex with texture
Transform {
rotation 0 1 0 0.6
translation 1 -0.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
colorPerVertex TRUE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# smooth shaded per vertex with texture
Transform {
rotation 0 1 0 0.6
translation 3 -0.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance USE MyTexApp
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
colorPerVertex TRUE
coord USE MyCoord
coordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
]
} # end of middle
# start of bottom
Transform {
translation 0 -11 0
children [
# flat shaded white lit texture with transparency
Transform {
rotation 0 1 0 0.6
translation -3 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance {
material Material { modulateTextureWithDiffuse true diffuseColor 1 1 1 transparency 0.5 }
texture ImageTexture { url "cpv_texmap.jpg" }
}
geometry IndexedFaceSet {
solid FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
texCoord DEF MyTexCoord TextureCoordinate { point [
0 1 0 0 1 0 1 1
]}
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# smooth shaded white lit with texture transparency and material transparency
Transform {
rotation 0 1 0 0.6
translation -1 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance {
material Material { modulateTextureWithDiffuse true diffuseColor 1 1 1 transparency 0.5 }
texture ImageTexture { url "cpv_transmap.gif" }
}
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
}
}
]
}
]
}
# color per poly + tex & mat transparency
Transform {
rotation 0 1 0 0.6
translation 1 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance {
material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 transparency 0.25 }
texture ImageTexture { url "cpv_transmap.gif" }
}
geometry IndexedFaceSet {
solid FALSE
colorPerVertex FALSE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 1 0
]}
colorIndex [
1 0
]
}
}
]
}
]
}
# white lit smooth shaded with texture
Transform {
rotation 0 1 0 0.6
translation 3 4.25 0
children [
Transform {
rotation 1 0 0 0.3
children [
Shape {
appearance Appearance {
material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 transparency 0.25 }
texture ImageTexture { url "cpv_transmap.gif" }
}
geometry IndexedFaceSet {
solid FALSE
creaseAngle 3
colorPerVertex TRUE
coord DEF MyCoord Coordinate { point [
0 1 0.3
-1 0 0
0 -1 0.3
1 0 0
]}
coordIndex [
0 1 2 -1
0 2 3 -1
]
texCoord USE MyTexCoord
texCoordIndex [
0 1 2 -1
0 2 3 -1
]
color Color {color [
1 0 0
0 0.5 0
0 1 0
0.5 0.5 0
]}
}
}
]
}
]
}
]
} # end of bottom